## Process this file with automake to produce Makefile.in
# 
# qucs/dialogs/Makefile.am
#
# Automake input file.
#
# Copyright (C) 2004, 2006, 2009 Stefan Jahn <stefan@lkcc.org>
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# 
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this package; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
# Boston, MA 02110-1301, USA.  
#

noinst_LTLIBRARIES = libdialogs.la

MOCHEADERS = settingsdialog.h simmessage.h qucssettingsdialog.h      \
     labeldialog.h changedialog.h matchdialog.h digisettingsdialog.h \
     sweepdialog.h searchdialog.h librarydialog.h importdialog.h     \
     packagedialog.h savedialog.h vasettingsdialog.h                 \
     exportdialog.h loaddialog.h newprojdialog.h aboutdialog.h

MOCFILES = $(MOCHEADERS:.h=.moc.cpp)

include ../../common.mk

UICFILES = ui_searchdialog.h

BUILT_SOURCES = $(UICFILES)

libdialogs_la_SOURCES = settingsdialog.cpp newprojdialog.cpp \
     simmessage.cpp qucssettingsdialog.cpp labeldialog.cpp changedialog.cpp \
     matchdialog.cpp sweepdialog.cpp digisettingsdialog.cpp searchdialog.cpp \
     librarydialog.cpp importdialog.cpp packagedialog.cpp \
     savedialog.cpp vasettingsdialog.cpp exportdialog.cpp loaddialog.cpp \
     aboutdialog.cpp

nodist_libdialogs_la_SOURCES = $(MOCFILES)

noinst_HEADERS = $(MOCHEADERS) $(UIHEADERS)

AM_CPPFLAGS = $(X11_INCLUDES) $(QT_CFLAGS) -I$(top_srcdir)/qucs

# common?!
ui_searchdialog.h: searchdialog.ui
	$(UIC) -o $@ $<

ui_searchdialog.h: $(top_builddir)/qt_version

EXTRA_DIST = searchdialog.ui

CLEANFILES = *~ *.moc.cpp ui_*.h
MAINTAINERCLEANFILES = Makefile.in
